<!DOCTYPE html>
<style>
::before:where(.foo) {
  color: red;
}
</style>
<div class=foo></div>
